﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TwitterDotNet.Models;

namespace TwitterDotNet.Views.Message
{
    public partial class Home : System.Web.Mvc.ViewUserControl<MessagesViewData>
    {

        public bool CanUpdate()
        {
            if (ViewData.CurrentUser.UserId == ViewData.LoggedInUser.UserId)
            {
                //displaying logged in user so show the update screen
                return true;
            }
            return false;

        }
    }
}
